package com.itheima.controller;


import com.itheima.common.PageBean;
import com.itheima.common.R;
import com.itheima.dto.Page;
import com.itheima.service.OperateLogService;
import com.itheima.vo.OperateLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 操作日志表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-07-28
 */
@RestController
@RequestMapping("log")
public class OperateLogController {

    @Autowired
    OperateLogService operateLogService;

    @GetMapping("page")
    public R pageQuery(Page page) {
      PageBean<OperateLogVo>pageQuery=  operateLogService.pageQuery(page);
        return R.ok(pageQuery);
    }
}
